<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.List"%>
<%@ page import="com.entity.Product"%>
<%@ page import="com.action.Main2Action"%>
<%@ page import="com.form.Main2Form"%>
<html>
<head>
<script type="text/javascript">
	function modoru() {
		history.back();
	}
</script>
<title>メイン画面3</title>
<style type="text/css">
body {
	background-color: #8FBC8F;
}

.center {
	text-align: center;
}

h1 {
	margin-top: 60px;
	width: 30%;
	background-color: #00BFFF;
}

.mytable1 {
	border-collapse: collapse;
}

.mytable1 th {
	font-weight: bold;
	background-color: #cccccc;
}

.mytable1 th,.mytable1 td {
	width: 110px;
	height: 35px;
	border: 1px solid black;
}

.mytable2 {
	border-collapse: collapse;
}

.mytable2 th {
	font-weight: bold;
	background-color: #cccccc;
}

.mytable2 th,.mytable2 td {
	width: 110px;
	height: 35px;
	border: 1px solid black;
}
</style>
</head>
<body>
	<div class="center">
		<h1>商品管理システム(仮)</h1>
	</div>
	<br> 詳細 <br> <br> <center> <html:form
					method="post" action="/main3.do">
					<table class="mytable1">
						<tr>
							<th>商品ID</th>
							<th>商品名称</th>
							<th>大分類</th>
							<th>中分類</th>
							<th>小分類</th>
						</tr>


						<logic:iterate id="product" name="products">

							<tr bgcolor="#FFFFFF">
								<td><html:text name="product" property="productId" /></td>
								<td><html:text name="product" property="productName" /></td>
								<td><html:text name="product" property="productKbnA" /></td>
								<td><html:text name="product" property="productKbnB" /></td>
								<td><html:text name="product" property="productKbnC" /></td>

							</tr>
					</table>
					<br> <br>
							<table class="mytable2">
								<tr>
									<th>仕入値</th>
									<th>販売価格</th>
									<th>発売社</th>
									<th>仕入先</th>
									<th>その他</th>
								</tr>

								<tr bgcolor="#FFFFFF">
									<td><html:text name="product" property="costPrice" /></td>
									<td><html:text name="product" property="sellingPrice" /></td>
									<td><html:text name="product" property="maker" /></td>
									<td><html:text name="product" property="supplier" /></td>
									<td><html:text name="product" property="dummy1" /></td>

								</tr>
								</logic:iterate>
							</table> <br><br><br> <html:submit property="kousin"
											value="更新">
										</html:submit> <input type="button" value="戻る" onclick="modoru()">
				</html:form> </center>
</body>
</html>